package com.ktjy.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class SparePart {
    private Long id;             // 对应 bigint(20)
    private String model;       // 对应 varchar(20)
    private Date productionDate;// 对应 date，注意属性名用驼峰（productionDate）
    private BigDecimal productionPrice; // 对应 decimal(20,2)

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public BigDecimal getProductionPrice() {
        return productionPrice;
    }

    public void setProductionPrice(BigDecimal productionPrice) {
        this.productionPrice = productionPrice;
    }

    @Override
    public String toString() {
        return "SparePart{" +
                "id=" + id +
                ", model='" + model + '\'' +
                ", productionDate=" + productionDate +
                ", productionPrice=" + productionPrice +
                '}';
    }
}
